/*
 * functions.h
 *
 *  Created on: Mar 25, 2010
 *      Author: mike
 */

//*************************************************************************
// File Name: functions.h
// Returns time stamps based on what each of the class uses in time format
// and checks for any failed attempts to open files.
// "Group 3"
// CS 1C
// March 25, 2010
// Group Project: SuperWarehouse
// Due: March 25, 2010
// - KZ's comment
//*************************************************************************

#ifndef FUNCTIONS_H_
#define FUNCTIONS_H_

#include <iostream>
#include <time.h>

using namespace std;

void debugMsg(const char *msg);
void debugMsg(string msg);
void errorMsg(const char *msg);
void errorMsg(string msg);
void statusMsg(const char *msg);
void statusMsg(string msg);

time_t timestampFromDateString(string theDate);
string dateStringFromTimestamp(time_t timestamp);
time_t currentTime();
time_t nextMonth(time_t timestamp);
void chomp(string &str);
void chomp(char *str);
string salesReportFilenameForDay(time_t day);

#endif /* FUNCTIONS_H_ */
